package com.zgh.manager.module;

import com.xxg.util.SystemProperty;
import com.xxg.util.TimeUtil;

import java.io.Serializable;

public class HeartBeatInfo  implements Serializable{

	public static final String SYSTEM_NAME="系统名称";
	public static final String SYSTEM_CODE="系统编码";
	public static final String IF_CLUSTER="是否集群";
	public static final String CLUSTER_NODE="集群编号";
	public static final String SYSTEM_IP="系统IP";
	public static final String SYSTEM_START_TIME="系统启动时间";
	public static final String TOTAL_MEMORY="总分配内存";
	public static final String USE_MEMORY="已使用内存";
	public static final String TOTAL_THREAD_NUMBER="总线程数";
	public static final String ONLINE_NUMBER="在线人数";
	
	private static final long serialVersionUID = 1L;
	
	private String systemName= SystemProperty.getProperty("systemName"); //系统名称
	private String syetemCode= SystemProperty.getProperty("systemCode");  //系统编码
	private String ifCluster= SystemProperty.getProperty("ifCluster"); //是否集群，1是，0否，默认为0
	private int clusterNode=Integer.parseInt(SystemProperty.getProperty("clusterNode")); //集群节点
	private String systemStartTime= TimeUtil.getCurrentDateTime(); //系统启动时间，格式2019-01-01 12:12:12
	private long maxMemory;	//最大内存
	private long freeMemory;	//可用内存
	private int totalThreadNumber; //系统当前总线程数
	private int onLineNumber;	//当前在线人数
	public String getSystemName() {
		return systemName;
	}
	public void setSystemName(String systemName) {
		this.systemName = systemName;
	}
	public String getSyetemCode() {
		return syetemCode;
	}
	public void setSyetemCode(String syetemCode) {
		this.syetemCode = syetemCode;
	}
	public String getIfCluster() {
		return ifCluster;
	}
	public void setIfCluster(String ifCluster) {
		this.ifCluster = ifCluster;
	}
	public int getClusterNode() {
		return clusterNode;
	}
	public void setClusterNode(int clusterNode) {
		this.clusterNode = clusterNode;
	}
	public String getSystemStartTime() {
		return systemStartTime;
	}
	public void setSystemStartTime(String systemStartTime) {
		this.systemStartTime = systemStartTime;
	}
	public long getMaxMemory() {
		return maxMemory;
	}
	public void setMaxMemory(long maxMemory) {
		this.maxMemory = maxMemory;
	}
	public long getFreeMemory() {
		return freeMemory;
	}
	public void setFreeMemory(long freeMemory) {
		this.freeMemory = freeMemory;
	}
	public int getTotalThreadNumber() {
		return totalThreadNumber;
	}
	public void setTotalThreadNumber(int totalThreadNumber) {
		this.totalThreadNumber = totalThreadNumber;
	}
	public int getOnLineNumber() {
		return onLineNumber;
	}
	public void setOnLineNumber(int onLineNumber) {
		this.onLineNumber = onLineNumber;
	}


	
	
	
}
